from django.db import models


# Create your models here.

class Student(models.Model):
    SEX = (('男', '男'), ('女', '女'))
    student_number = models.CharField(max_length=50, primary_key=True)
    student_password = models.CharField(max_length=50)
    student_name = models.CharField(max_length=50)
    student_sex = models.CharField(max_length=50, choices=SEX, default="男")
    student_phone = models.CharField(max_length=50)
    student_birthday = models.DateField(max_length=20)
    student_department = models.CharField(max_length=50)
    student_class = models.CharField(max_length=50,default="未设置")

    class Mata:
        verbose_name = verbose_name_plural = "学生"
